package StudyCode.summary.mycollection;

import java.util.TreeSet;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CopyAllElementsOfTreeSetToAnObjectArray {
	public static void main(String[] args) {
		TreeSet tSet = new TreeSet();
		tSet.add(new Integer("1"));
		tSet.add(new Integer("2"));
		tSet.add(new Integer("3"));
		Object[] objArray = tSet.toArray();
		for (int index = 0; index < objArray.length; index++)
			System.out.println(objArray[index]);
	}
}
